<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view>
			<text class="title">{{title}}</text>		
		</view>
		<button size="mini" type="primary" @click="toHome">登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		onBackPress(options) {
			console.log('from:' + options.from)
		},
		methods: {
			toHome(){
				uni.switchTab({
					url: '/pages/home/home'
				})
			}
		}
	}
</script>

<style lang="scss"> //设置样式为scss，可直接使用全局uni.scss的变量
	.content {
		/* text-align: center; */
		height: 100%;
		width: 100%;
		display:flex;
		flex-direction:column;
		align-items: center;
		justify-content: center;
	}
	.logo {
		height: 100upx;
		width: 100upx;
		/* margin-top: 200upx; */
		
	}
	.title {
		font-size: $uni-font-size-big;
		color: #8f8f94;
	}
</style>
